convert array object to int[] c#

78

convert array object to int[] c# -

object[] objarr = new object[] {1,2,3 };
int[] arr = objarr.Cast<int>().ToArray();

Comments

Submit
0 Comments